<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <title>电影天堂 - 看电影就上电影天堂</title>
    <link href="/css/style.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
    <script src="/js/jquery-3.7.1.min.js" th:src="@{/js/jquery-3.7.1.min.js}"></script>
    <style>
        .movie-container {
            max-width: 100%;
            height: 900px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f4f4f4;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }

        .movie-player {
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 4px;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .movie-player {
                height: 400px;
            }
        }

        @media (max-width: 480px) {
            .movie-player {
                height: 300px;
            }
        }
        .loading-indicator {
            text-align: center;
            padding: 20px;
            font-size: 18px;
            color: #333;
        }
    </style>
</head>
<body>
<header th:replace="~{top}"></header>
<section class="movie-section">
    <div class="movie-container">
        <div class="loading-indicator" th:if="${movie.videoUrl == null}">
            <i class="fas fa-spinner fa-spin"></i> 正在加载电影...
        </div>
        <iframe th:src="${movie.videoUrl}" allowfullscreen class="movie-player"></iframe>
    </div>
</section>
<script src="/js/main.js"></script>
</body>
</html>
